
Page({
	data: {
		info:{
			name:'',
			appid:''
		}
	},
	onLoad: function (options) {
		console.log('onLoad');
				wx.showToast({title:'onLoad'})
		/*wx.request({
			url:'http://appv4.chinalao.com/api/getVersionInfo',
			method:'post',
			data:{appid:'wxda962c7a7a74c113'},
			success:(res)=>{
				console.log(res)
			}
		});*/
	},
	onShow: function () {
		console.log('onShow');
	},
	onReady: function () {
		console.log('onReady');
	},
	onHide: function () {
		console.log('onHide');
	},
	onUnload: function () {
		console.log('onUnload');
	},
	openupdatecode(e){
		wx.navigateTo({
  			url: '/pages/detail/index',
  		});
	},
	updatecode(opts) {
		wx.request({
			url:'http://appv4.chinalao.com/api/commit',
			method:'post',
			data:{appid:'wxda962c7a7a74c113'},
			success:(res)=>{
				console.log(res)
			}
		});
	},
	qrcode(opts) {
		/*wx.request({
			url:'http://appv4.chinalao.com/api/getTrialQRCode',
			method:'post',
			data:{appid:this.data.info.appid},
			success:(res)=>{
				console.log(res)
			}
		});*/
	},
	//提交审核
	submitAudit(opts) {
		wx.request({
			url:'http://appv4.chinalao.com/api/submitAudit',
			method:'post',
			data:{appid:this.data.info.appid},
			success:(res)=>{
				console.log(res)
				wx.showToast({title:''})
			}
		});
	},
	//发布
	release(opts) {
		wx.request({
			url:'http://appv4.chinalao.com/api/release',
			method:'post',
			data:{appid:this.data.info.appid},
			success:(res)=>{
				console.log(res)
			}
		});
	},
});
						